//
//  LGDiscoverController.m
//  微博
//
//  Created by MS on 15-12-3.
//  Copyright (c) 2015年 MS. All rights reserved.
//

#import "LGDiscoverController.h"
#import "LGSeachBar.h"
@interface LGDiscoverController ()
@property (nonatomic,weak) LGSeachBar * seachBar;

@end

@implementation LGDiscoverController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    LGSeachBar * seachBar = [[LGSeachBar alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 35)];
    self.seachBar = seachBar;
    seachBar.placeholder =@"大家正在搜";
    self.navigationItem.titleView = seachBar;
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


-(void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
{
   
    [self.navigationItem.titleView endEditing:YES];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
